package com.dingreading.cloud.ssxcx.service;

import com.dingreading.cloud.common.base.R;
import com.mybatisflex.core.service.IService;
import com.dingreading.cloud.ssxcx.entity.XcxStudentLogin;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.ParseException;

/**
 * 小程序学生登录日志表 服务层。
 *
 * @author EDY
 * @since 2025-07-29
 */
public interface XcxStudentLoginService extends IService<XcxStudentLogin> {
    void getPicCode(HttpServletResponse response, String timestamp) throws IOException;

    R<Object> studentLogin(HttpServletRequest request, String uid, String password, String timestamp, String code) throws ParseException;

    R<Object> mdyPassword(String agencyUid, String uid, String newPass, String confirmPass);

    R<Object> logout(String agencyUid, String uid);

    R<Object> getStudentInfo(HttpServletRequest request);

}
